Benjamin Otte [Mon, 2 Mar 2020 02:11:14 +0000 (03:11 +0100)]
dragicon: Add gtk_drag_icon_create_widget_for_value()
... and use it to set a drag icon.
Benjamin Otte [Mon, 2 Mar 2020 02:39:14 +0000 (03:39 +0100)]
contentformats: Constify some functions
Benjamin Otte [Mon, 2 Mar 2020 01:55:38 +0000 (02:55 +0100)]
dragicon: Change how to acquire drag icons
Before, gtk_drag_icon_new_for_drag() allowed creating new drag icons.
This could cause multiple drag icons to exist for a single drag.
Now, gtk_drag_icon_get_for_drag() makes sure that only one drag icon is
created.
Benjamin Otte [Sun, 1 Mar 2020 21:28:39 +0000 (22:28 +0100)]
dragicon: Add GtkDragIcon::child
Benjamin Otte [Sun, 1 Mar 2020 17:50:15 +0000 (18:50 +0100)]
gdk: Make gdk_drop_status() take preferred action
This allows textview/text dnd to properly display a MOVE icon when in
the widget the drag started from but a COPY icon otherwise.
Benjamin Otte [Sun, 1 Mar 2020 16:32:40 +0000 (17:32 +0100)]
colorswatch: Switch to dragged color during dnd
This is really simple to implement now, so do it.
Benjamin Otte [Sun, 1 Mar 2020 07:45:15 +0000 (08:45 +0100)]
gtk-demo: Add a simple peg solitaire DND demo
Benjamin Otte [Sat, 29 Feb 2020 02:47:17 +0000 (03:47 +0100)]
droptarget: Redo
This is a huge reorganization of GtkDropTarget. I did not know how to
split this up, so it's unfortunately all one commit.
Highlights:
- Split GtkDropTarget into GtkDropTarget and GtkDropTargetAsync
GtkDropTarget is the simple one that only works with GTypes and offers
a synchronous interface.
GtkDropTargetAsync retains the full old functionality and allows
handling mime types.
- Drop events are handled differently
Instead of picking a single drop target and sending all DND events to
it, every event is sent to every drop target. The first one to handle
the event gets to call gdk_drop_status(), further handlers do not
interact with the GdkDrop.
Of course, for the ultimate GDK_DROP_STARTING event, only the first
one to accept the drop gets to handle it.
This allows stacking DND event controllers that aren't necessarily
interested in handling the event or that might decide later to drop
it.
- Port all widgets to either of those
Both have a somewhat changed API due to the new event handling.
For the ones who should use the sync version, lots of cleanup was
involved to operate on a sync API.
Benjamin Otte [Sun, 1 Mar 2020 01:56:09 +0000 (02:56 +0100)]
placessidebar: Don't use the GdkDrag
First, it should have been a GdkDrop, but even then, proper DND code
should not rely on internals.
It's only been used in an unused signal emission anyway.
Benjamin Otte [Sat, 29 Feb 2020 05:29:27 +0000 (06:29 +0100)]
notebook: Make dnd page switching a drop controller
This untangles tab dnd from page switching.
Benjamin Otte [Sat, 29 Feb 2020 03:37:16 +0000 (04:37 +0100)]
textview: Move drop scrolling to drop motion controller
Don't confuse the drop target with it.
Benjamin Otte [Fri, 28 Feb 2020 03:19:36 +0000 (04:19 +0100)]
treeview, iconview: Don't return the drop target
Not a good idea to hand internal event controllers out to public API.
Benjamin Otte [Tue, 25 Feb 2020 21:42:10 +0000 (22:42 +0100)]
testsuite: Use g_assert() in tests
Emmanuele Bassi [Sun, 1 Mar 2020 15:07:17 +0000 (15:07 +0000)]
Merge branch 'piotrdrag/placessidebar-typos' into 'master'
placessidebar: Fix a couple of typos and thinkos in menu labels
See merge request GNOME/gtk!1494
Piotr Drąg [Sun, 1 Mar 2020 14:05:28 +0000 (15:05 +0100)]
placessidebar: Fix a couple of typos and thinkos in menu labels
Matthias Clasen [Sat, 29 Feb 2020 01:19:48 +0000 (01:19 +0000)]
Merge branch 'kill-grabs-2' into 'master'
Kill grabs
See merge request GNOME/gtk!1492
Matthias Clasen [Fri, 28 Feb 2020 21:36:17 +0000 (16:36 -0500)]
Drop gtk_grab_add/remove from public api
The only form in which we still allow grabs to take place
is with modal toplevels.
Matthias Clasen [Fri, 28 Feb 2020 21:29:56 +0000 (16:29 -0500)]
Drop gtk_grab_get_current
Another grab-related api that we are not using.
Matthias Clasen [Fri, 28 Feb 2020 21:27:42 +0000 (16:27 -0500)]
Drop device grabs
We were not using this api at all, so lets drop it.
Matthias Clasen [Fri, 28 Feb 2020 20:35:11 +0000 (20:35 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
inspector: Fix the "Software GL" switch
See merge request GNOME/gtk!1491
Matthias Clasen [Fri, 28 Feb 2020 19:42:19 +0000 (14:42 -0500)]
inspector: Fix the "Software GL" switch
This was crashing.
Piotr Drąg [Thu, 27 Feb 2020 21:05:24 +0000 (22:05 +0100)]
Update POTFILES.in and POTFILES.skip
Matthias Clasen [Thu, 27 Feb 2020 20:29:04 +0000 (20:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!1488
Matthias Clasen [Thu, 27 Feb 2020 19:07:12 +0000 (14:07 -0500)]
Remove a stray g_object_unref
Events are no longer objects, so this does not do
any good. Use gdk_event_unref instead.
Matthias Clasen [Thu, 27 Feb 2020 12:47:37 +0000 (07:47 -0500)]
Avoid a crash in css font features values
Nathan Follens [Thu, 27 Feb 2020 11:05:23 +0000 (11:05 +0000)]
Update Dutch translation
Timm Bäder [Thu, 27 Feb 2020 10:41:44 +0000 (10:41 +0000)]
Merge branch 'patch-1' into 'master'
Fix a typo in gtkplacessidebar.c
See merge request GNOME/gtk!1486
Krzesimir Nowak [Thu, 27 Feb 2020 10:02:56 +0000 (10:02 +0000)]
Fix a typo in gtkplacessidebar.c
Some mistyped vim command got into the code in commit
60d2813247831adf9642f87ad2bf597280d2f31a.
Matthias Clasen [Thu, 27 Feb 2020 01:12:23 +0000 (01:12 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Fix a leftover occurrence of ::expand
See merge request GNOME/gtk!1485
Matthias Clasen [Thu, 27 Feb 2020 00:31:25 +0000 (19:31 -0500)]
Fix a leftover occurrence of ::expand
Danial Behzadi [Wed, 26 Feb 2020 23:23:04 +0000 (23:23 +0000)]
Update Persian translation
Matthias Clasen [Wed, 26 Feb 2020 22:34:45 +0000 (22:34 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
gesture: Actually track targets
See merge request GNOME/gtk!1484
Matthias Clasen [Wed, 26 Feb 2020 22:06:15 +0000 (17:06 -0500)]
gesture: Actually track targets
Due to a mismerge, this wasn't actually working,
and was causing criticals from gtk_widget_has_grab
when dragging windows.
Matthias Clasen [Wed, 26 Feb 2020 14:59:14 +0000 (09:59 -0500)]
builder-tool: Fix a thinko
We can't rely on the pspec for a removed property.
This code worked until I actually removed the properties.
Update the tests to reflect this.
Matthias Clasen [Wed, 26 Feb 2020 14:27:47 +0000 (14:27 +0000)]
Merge branch 'expand-margin-cleanup' into 'master'
expand and margin cleanup
See merge request GNOME/gtk!1479
Matthias Clasen [Wed, 26 Feb 2020 01:57:20 +0000 (20:57 -0500)]
Small fixups
Trying to get the ci style test to pass.
Emmanuele Bassi [Wed, 26 Feb 2020 11:19:09 +0000 (11:19 +0000)]
Merge branch 'docs-fixes' into 'master'
Various documentation fixes
See merge request GNOME/gtk!1481
Emmanuele Bassi [Wed, 26 Feb 2020 10:41:50 +0000 (10:41 +0000)]
Merge branch 'remove-show-hidden' into 'master'
Remove last instances of GtkFileChooser:show-hidden
See merge request GNOME/gtk!1480
Emmanuele Bassi [Wed, 26 Feb 2020 10:29:59 +0000 (10:29 +0000)]
Add missing ownership transfer annotations
Emmanuele Bassi [Wed, 26 Feb 2020 10:25:46 +0000 (10:25 +0000)]
Fix gtk-doc stanza for private symbol
Emmanuele Bassi [Wed, 26 Feb 2020 10:23:15 +0000 (10:23 +0000)]
Add missing documentation to GdkDevice
Emmanuele Bassi [Wed, 26 Feb 2020 10:23:01 +0000 (10:23 +0000)]
Add missing ownership transfer annotations
Emmanuele Bassi [Wed, 26 Feb 2020 10:19:10 +0000 (10:19 +0000)]
Fix introspection annotation syntax
Emmanuele Bassi [Wed, 26 Feb 2020 10:06:22 +0000 (10:06 +0000)]
Remove last instances of GtkFileChooser:show-hidden
The file chooser widget is still setting the show-hidden property, even
though it was removed.
Matthias Clasen [Wed, 26 Feb 2020 01:57:20 +0000 (20:57 -0500)]
Drop the margin property
Replace it with margin-start, -end, -top, -bottom throughout.
Matthias Clasen [Tue, 25 Feb 2020 23:25:52 +0000 (18:25 -0500)]
Drop the expand property
The hexpand and vexpand properties are sufficient.
Matthias Clasen [Tue, 25 Feb 2020 23:25:41 +0000 (18:25 -0500)]
update testsuite
Update the expected results of the tools tests that are
affected by the new property handling for expand and margin.
Matthias Clasen [Tue, 25 Feb 2020 22:50:57 +0000 (17:50 -0500)]
builder-tool: replace some properties
Replace expand by hexpand and vexpand and
margin by margin-left, -right, -top, -bottom.
Emmanuele Bassi [Tue, 25 Feb 2020 19:47:57 +0000 (19:47 +0000)]
Merge branch 'ci-docs' into 'master'
Restructure CI jobs
See merge request GNOME/gtk!1476
Emmanuele Bassi [Tue, 25 Feb 2020 19:06:39 +0000 (19:06 +0000)]
ci: Add a static analysis job
Use the Clang static analysis tool.
For the time being, we're going to allow it to fail, but the plan is to
fix every issue it raises.
Emmanuele Bassi [Tue, 25 Feb 2020 19:05:07 +0000 (19:05 +0000)]
ci: Update the docker wrapper script
Do a better job at detecting whether we have Docker installed.
Emmanuele Bassi [Tue, 25 Feb 2020 17:57:46 +0000 (17:57 +0000)]
ci: Move style-check to .pre phase
We want the style checks running at the start of the CI pipeline, no
need to have a specific phase for it.
Emmanuele Bassi [Tue, 25 Feb 2020 17:19:08 +0000 (17:19 +0000)]
ci: Update all fedora images to v14
Emmanuele Bassi [Tue, 25 Feb 2020 17:18:23 +0000 (17:18 +0000)]
ci: Add clang-analyzer to the fedora build image
Emmanuele Bassi [Tue, 25 Feb 2020 17:15:00 +0000 (17:15 +0000)]
ci: Rename the "style-check" phase to "analysis"
We want to re-use it for other jobs.
Emmanuele Bassi [Tue, 25 Feb 2020 17:13:39 +0000 (17:13 +0000)]
ci: Fix style check script
Propagate the exit status from clang-format-diff.py to avoid it being
overwritten by the `echo` at the end of the script.
Emmanuele Bassi [Tue, 25 Feb 2020 16:42:07 +0000 (16:42 +0000)]
ci: Add a separate "docs" stage
Don't build the API reference on deploy; build it in a separate job,
instead, so we can run it on all pipelines, and deploy it only for
master.
Timm Bäder [Tue, 25 Feb 2020 13:35:34 +0000 (13:35 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'
wip/baedert/for-master
See merge request GNOME/gtk!1466
Timm Bäder [Sun, 23 Feb 2020 15:53:53 +0000 (16:53 +0100)]
statusbar: Remove _get_message_area() from public API
The message should be manipulated via push() and pop().
Timm Bäder [Sun, 23 Feb 2020 15:08:23 +0000 (16:08 +0100)]
scrolledwindow: Remove an unnecessary cast
Timm Bäder [Sun, 23 Feb 2020 14:57:10 +0000 (15:57 +0100)]
scrolledwindow: Remove useless local variables
Timm Bäder [Sat, 22 Feb 2020 15:13:34 +0000 (16:13 +0100)]
widget: Remove gtk_widget_input_shape_combine_region()
Widget's don't have surfaces anymore these days.
Timm Bäder [Sat, 22 Feb 2020 15:07:12 +0000 (16:07 +0100)]
inspect-button: Use new gtk_window_set_extra_input_region
Timm Bäder [Sat, 22 Feb 2020 15:05:35 +0000 (16:05 +0100)]
window: Carry an extra input region
This will be used in the inspector to make it possible to click through
the inspector window.
Timm Bäder [Sat, 22 Feb 2020 14:28:44 +0000 (15:28 +0100)]
popover: Stop using gtk_widget_input_shape_combine_region()
We control the surface anyway, we can as well set the input shape on it
directly.
Timm Bäder [Sat, 22 Feb 2020 14:25:49 +0000 (15:25 +0100)]
widget: Remove set_csd_input_shape
Replace the only caller (unsurprisingly from gtkwindow.c) with a direct
call to gdk_surface_input_shape_combine_region.
Timm Bäder [Sat, 22 Feb 2020 13:55:52 +0000 (14:55 +0100)]
widget: Remove surface member
Only GtkNatives are supposed to have a surface, so use the widget's
native.
Timm Bäder [Sat, 22 Feb 2020 13:12:16 +0000 (14:12 +0100)]
range: Remove an outdated comment
What even is a CList.
Timm Bäder [Sat, 22 Feb 2020 13:11:05 +0000 (14:11 +0100)]
range: Inline function into only caller
Timm Bäder [Sat, 22 Feb 2020 13:04:06 +0000 (14:04 +0100)]
range: Clean up compute_slider_position()
Timm Bäder [Sat, 22 Feb 2020 08:07:48 +0000 (09:07 +0100)]
menusectionbox: Avoid a gtk_widget_destroy() call
Timm Bäder [Fri, 21 Feb 2020 14:24:19 +0000 (15:24 +0100)]
pathbar: Inherit from GtkWidget
Timm Bäder [Fri, 21 Feb 2020 12:58:49 +0000 (13:58 +0100)]
colorchooser: Fix typo in checkerboard color
Timm Bäder [Fri, 21 Feb 2020 12:38:38 +0000 (13:38 +0100)]
inspector: Remove double borders in recorder
Timm Bäder [Fri, 21 Feb 2020 12:04:44 +0000 (13:04 +0100)]
headerbar: Replace gtk_widget_destroy() call
Timm Bäder [Fri, 21 Feb 2020 11:57:16 +0000 (12:57 +0100)]
headerbar: Remove size request on icon button
Doesn't make sense that we force this one button to be this big.
Timm Bäder [Fri, 21 Feb 2020 08:37:00 +0000 (09:37 +0100)]
shortcutlabel: Remove unnecessary includes
Timm Bäder [Fri, 21 Feb 2020 08:08:05 +0000 (09:08 +0100)]
stackswitcher: Avoid calling gtk_widget_destroy()
Timm Bäder [Fri, 21 Feb 2020 08:04:27 +0000 (09:04 +0100)]
modelbutton: Fix wrong function name in doc comment
Timm Bäder [Fri, 21 Feb 2020 08:03:32 +0000 (09:03 +0100)]
placessidebar: Convert popover menu to proper GtkPopoverMenu
Timm Bäder [Thu, 20 Feb 2020 18:56:56 +0000 (19:56 +0100)]
placessidebar: Avoid calling gtk_widget_destroy()
Timm Bäder [Thu, 20 Feb 2020 18:36:13 +0000 (19:36 +0100)]
pathbar: Avoid calling gtk_widget_destroy()
Timm Bäder [Thu, 20 Feb 2020 18:29:25 +0000 (19:29 +0100)]
headerbar: Avoid calling gtk_widget_destroy()
Timm Bäder [Thu, 20 Feb 2020 18:26:44 +0000 (19:26 +0100)]
popovermenubar: Avoid calling gtk_widget_destroy()
Timm Bäder [Thu, 20 Feb 2020 18:21:59 +0000 (19:21 +0100)]
emojichooser: Avoid using gtk_widget_destroy()
Timm Bäder [Thu, 20 Feb 2020 17:05:00 +0000 (18:05 +0100)]
popovermenu: Avoid a gtk_widget_destroy() call
Timm Bäder [Thu, 20 Feb 2020 16:54:56 +0000 (17:54 +0100)]
colorchooserwidget: Get rid of a gtk_widget_destroy() call
Matthias Clasen [Tue, 25 Feb 2020 04:07:49 +0000 (23:07 -0500)]
testsuite: Remove outdated exclusions
There were mentions of GtkCList and GtkColorSelection
in these test. The memories!
Matthias Clasen [Tue, 25 Feb 2020 04:04:46 +0000 (04:04 +0000)]
Merge branch 'spinning-spinner' into 'master'
Rename GtkSpinner::active to ::spinning
See merge request GNOME/gtk!1475
Matthias Clasen [Tue, 25 Feb 2020 02:04:49 +0000 (21:04 -0500)]
Rename GtkSpinner::active to ::spinning
And add a setter and getter. The old name was
confusing with the widget state of the same
name. 'Active' is just too overloaded.
Matthias Clasen [Tue, 25 Feb 2020 02:09:52 +0000 (02:09 +0000)]
Merge branch 'kill-rtl-media-icons' into 'master'
Drop rtl variants of media-playback-start
See merge request GNOME/gtk!1474
Matthias Clasen [Tue, 25 Feb 2020 02:00:50 +0000 (02:00 +0000)]
Merge branch 'kill-popover-relative-to' into 'master'
Drop GtkPopover::relative-to
See merge request GNOME/gtk!1471
Matthias Clasen [Tue, 25 Feb 2020 01:49:10 +0000 (20:49 -0500)]
Drop rtl variants of media-playback-start
According to #2469, they are unwanted.
Matthias Clasen [Mon, 24 Feb 2020 12:21:46 +0000 (07:21 -0500)]
popover: Drop ::relative-to
It is enough to just set the parent (and make the parent
call gtk_native_check_resize in size_allocate).
This commit removes the relative_to argument to the
constructors of GtkPopover and GtkPopoverMenu, and
updates all callers.
Matthias Clasen [Tue, 25 Feb 2020 00:26:42 +0000 (00:26 +0000)]
Merge branch 'surface-get-mapped' into 'master'
Add gdk_surface_get_mapped
See merge request GNOME/gtk!1473
Matthias Clasen [Tue, 25 Feb 2020 00:03:49 +0000 (19:03 -0500)]
Drop gdk_surface_is_visible
It has been replaced by gdk_surface_get_mapped.
Matthias Clasen [Tue, 25 Feb 2020 00:02:34 +0000 (19:02 -0500)]
Replace gdk_surface_is_visible by _get_mapped
The property is called ::mapped, and we want to get
to standard getter naming.
Matthias Clasen [Mon, 24 Feb 2020 22:59:12 +0000 (17:59 -0500)]
Add gdk_surface_get_mapped
Returns the value of the ::mapped property. This is
a direct replacement for gtk_surface_is_visible.
Matthias Clasen [Mon, 24 Feb 2020 20:31:22 +0000 (20:31 +0000)]
Merge branch 'getters-and-setters' into 'master'
gdk:Getters and setters
See merge request GNOME/gtk!1472
Matthias Clasen [Mon, 24 Feb 2020 13:32:15 +0000 (08:32 -0500)]
Add missing GdkDrag getters